/*
 * An XML document type.
 * Localname: pingResponse
 * Namespace: http://api.clickatell.com/soap/webservice
 * Java type: com.clickatell.api.soap.webservice.PingResponseDocument
 *
 * Automatically generated - do not modify.
 */
package com.clickatell.api.soap.webservice.impl;
/**
 * A document containing one pingResponse(@http://api.clickatell.com/soap/webservice) element.
 *
 * This is a complex type.
 */
public class PingResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.clickatell.api.soap.webservice.PingResponseDocument
{
    
    public PingResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PINGRESPONSE$0 = 
        new javax.xml.namespace.QName("http://api.clickatell.com/soap/webservice", "pingResponse");
    
    
    /**
     * Gets the "pingResponse" element
     */
    public com.clickatell.api.soap.webservice.PingResponseDocument.PingResponse getPingResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.clickatell.api.soap.webservice.PingResponseDocument.PingResponse target = null;
            target = (com.clickatell.api.soap.webservice.PingResponseDocument.PingResponse)get_store().find_element_user(PINGRESPONSE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "pingResponse" element
     */
    public void setPingResponse(com.clickatell.api.soap.webservice.PingResponseDocument.PingResponse pingResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.clickatell.api.soap.webservice.PingResponseDocument.PingResponse target = null;
            target = (com.clickatell.api.soap.webservice.PingResponseDocument.PingResponse)get_store().find_element_user(PINGRESPONSE$0, 0);
            if (target == null)
            {
                target = (com.clickatell.api.soap.webservice.PingResponseDocument.PingResponse)get_store().add_element_user(PINGRESPONSE$0);
            }
            target.set(pingResponse);
        }
    }
    
    /**
     * Appends and returns a new empty "pingResponse" element
     */
    public com.clickatell.api.soap.webservice.PingResponseDocument.PingResponse addNewPingResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.clickatell.api.soap.webservice.PingResponseDocument.PingResponse target = null;
            target = (com.clickatell.api.soap.webservice.PingResponseDocument.PingResponse)get_store().add_element_user(PINGRESPONSE$0);
            return target;
        }
    }
    /**
     * An XML pingResponse(@http://api.clickatell.com/soap/webservice).
     *
     * This is a complex type.
     */
    public static class PingResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.clickatell.api.soap.webservice.PingResponseDocument.PingResponse
    {
        
        public PingResponseImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName RETURN$0 = 
            new javax.xml.namespace.QName("", "return");
        
        
        /**
         * Gets the "return" element
         */
        public java.lang.String getReturn()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RETURN$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "return" element
         */
        public org.apache.xmlbeans.XmlString xgetReturn()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RETURN$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "return" element
         */
        public void setReturn(java.lang.String xreturn)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RETURN$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RETURN$0);
                }
                target.setStringValue(xreturn);
            }
        }
        
        /**
         * Sets (as xml) the "return" element
         */
        public void xsetReturn(org.apache.xmlbeans.XmlString xreturn)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RETURN$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RETURN$0);
                }
                target.set(xreturn);
            }
        }
    }
}
